package cn.doitedu;

public class StudentInfoTest {
    public static void main(String[] args) {

        // 创建一个StudentInfo类（模板）的对象（实例）
        StudentInfo zhangsan = new StudentInfo();

        System.out.println(zhangsan.chineseScore);
        zhangsan.chineseScore = 98.8;
        System.out.println(zhangsan.chineseScore);
        zhangsan.mathScore = 88.6;
        zhangsan.chemicalScore = 92.4;
        zhangsan.musicScore = 97.8;


        StudentInfo lisi = new StudentInfo();
        System.out.println(lisi.chineseScore);
        System.out.println(lisi.chemicalScore);


        // 调用有参构造方法，来生成一个wangwu对象
        StudentInfo wangwu = new StudentInfo(88.8, 66.6, 77.7, 99.9);
        wangwu.chineseScore = 92.2;

        System.out.println(wangwu.chineseScore);


    }
}
